﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using BUS;
using DTO;

namespace QuanLyNhaSach.usercontrol
{
    public partial class HoaDon : UserControl
    {
        public HoaDon()
        {
            InitializeComponent();
        }

        private void HoaDon_Load(object sender, EventArgs e)
        {
            HoaDonBUS bus = new HoaDonBUS();
            List<HoaDonDTO> dsHoaDon = bus.GetAll();
            dgvHoaDon.DataSource = dsHoaDon;
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            frmThemHoaDon frm = new frmThemHoaDon();
            frm.Show();
        }
    }
}
